# Remember to check active connections to the db and close them ALTER DATABASE your_db_name RENAME TO new_name;